Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Sametime Forum

HCL Sametime Forum


  

PreviousPrevious NextNext

RE: How to forcefully kill an online user session
~Lisa Lopfoochekgon 29.Aug.11 08:12 AM a Web browser
Applications development 8.5.1 Windows


Hi Carl,
I tried to do a light login for the user and it is working fine.
But not able to do the logout for teh user.

User is logged in web client and still showing logging in.
Please assist where I am lacking.
Below is the code Sample:

public class LightLoginapp implements LoginListener {
private STSession m_session;
private ServerAppService m_saService;
private Userlogin m_user;

public MuxApplication() {

try {
m_session = new STSession();
} catch (DuplicateObjectException doe) {
doe.printStackTrace();
return;
}
m_session.loadSemanticComponents();
m_session.start();
m_saService = (ServerAppService) m_session
.getCompApi(ServerAppService.COMP_NAME);
m_saService.addLoginListener(this);
short loginType = STUserInstance.LT_MUX_APP;

m_saService.loginAsServerApp(SERVER_NAME, loginType,
"iBPMServlet", null);

}

public void loggedIn(LoginEvent e) {
System.out.println("Mux Application Logged In" + e.getLoginType());
m_user = new Userlogin (m_saService,"nishant");
}

public void loggedOut(LoginEvent e) {
System.out.println("Mux Application Logged Out");
}


public static void main(String[] args) {
// TODO Auto-generated method stub
MuxApplication mx=new MuxApplication();

}




Other Userlogin class as below:
public class Userlogin implements LoginListener,ImServiceListener,ImListener {
private STSession m_session;
private LightLoginService loginService;
private String m_username = "";
private InstantMessagingService m_imService;
private MuxApplication mx;


public Userlogin (ServerAppService saService,String username) {
m_username = username;
try {
m_session = new STSession();
} catch (DuplicateObjectException doe) {
doe.printStackTrace();
return;
}
m_session.loadSemanticComponents();
m_session.start();
loginService=(LightLoginService)m_session.getCompApi(LightLoginService.COMP_NAME);
loginService.setLoginType(STUserInstance.LT_LIGHT_CLIENT_USER);
loginService.addLoginListener(this);
loginService.loginWithoutCredentials(username,saService,null);


}

public void loggedIn(LoginEvent e) {
System.out.println(m_username + " Logged In" + e.getLoginType());
loggedOut(e);

}

public void loggedOut(LoginEvent e) {
System.out.println(e.getIp());

System.out.println("Logged Out");
}


But not able to logout from the sametime.




How to forcefully kill an online us... (~Lisa Lopfooche... 25.Aug.11)
. . RE: How to forcefully kill an onlin... (~Fritz Ekfoober... 25.Aug.11)
. . . . RE: How to forcefully kill an onlin... (~Lisa Lopfooche... 26.Aug.11)
. . . . . . RE: How to forcefully kill an onlin... (~Fritz Ekfoober... 26.Aug.11)
. . . . . . . . RE: How to forcefully kill an onlin... (~Lisa Lopfooche... 29.Aug.11)
. . . . . . . . . . RE: How to forcefully kill an onlin... (~Mark Bubnitexa... 29.Aug.11)
. . . . . . . . . . . . RE: How to forcefully kill an onlin... (~Lisa Lopfooche... 7.Sep.11)
. . . . . . . . . . . . . . RE: How to forcefully kill an onlin... (~Lisa Lopfooche... 7.Sep.11)
. . . . . . . . . . . . . . . . RE: How to forcefully kill an onlin... (~Fritz Ekfoober... 12.Sep.11)
. . . . . . . . . . . . . . . . . . RE: How to forcefully kill an onlin... (~Lisa Lopfooche... 13.Sep.11)
. . . . . . . . . . . . . . . . . . RE: How to forcefully kill an onlin... (~Lisa Lopfooche... 18.Sep.11)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS